package com.jinmdz.fmis.api.api.model.calcrule;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 计算规则加载数据
 *
 * @author LiCongLu
 * @date 2020-04-07 17:13
 */
@ApiModel(value = "计算规则加载数据", description = "计算规则加载数据")
public class CalcRuleLoadData extends BaseBean {
    /**
     * 价格
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "价格", name = "itemPrice", position = 1)
    private BigDecimal itemPrice;

    /**
     * 规则数量
     */
    @ApiModelProperty(value = "规则数量", name = "ruleNumber", position = 2)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal ruleNumber;

    /**
     * 金额
     */
    @ApiModelProperty(value = "金额", name = "itemCharge", position = 3)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal itemCharge;

    /**
     * 规则单位
     */
    @ApiModelProperty(value = "规则单位", name = "ruleUnit", position = 4)
    private String ruleUnit;

    /**
     * 规则编码
     */
    @ApiModelProperty(value = "规则编码", name = "ruleCode", position = 5)
    private String ruleCode;

    /**
     * 规则备注
     */
    @ApiModelProperty(value = "规则备注", name = "ruleRemark", position = 6)
    private String ruleRemark;

    public BigDecimal getItemPrice() {
        return itemPrice;
    }

    public CalcRuleLoadData setItemPrice(BigDecimal itemPrice) {
        this.itemPrice = itemPrice;
        return this;
    }

    public BigDecimal getRuleNumber() {
        return ruleNumber;
    }

    public CalcRuleLoadData setRuleNumber(BigDecimal ruleNumber) {
        this.ruleNumber = ruleNumber;
        return this;
    }

    public BigDecimal getItemCharge() {
        return itemCharge;
    }

    public CalcRuleLoadData setItemCharge(BigDecimal itemCharge) {
        this.itemCharge = itemCharge;
        return this;
    }

    public String getRuleUnit() {
        return ruleUnit;
    }

    public CalcRuleLoadData setRuleUnit(String ruleUnit) {
        this.ruleUnit = ruleUnit;
        return this;
    }

    public String getRuleCode() {
        return ruleCode;
    }

    public CalcRuleLoadData setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode;
        return this;
    }

    public String getRuleRemark() {
        return ruleRemark;
    }

    public CalcRuleLoadData setRuleRemark(String ruleRemark) {
        this.ruleRemark = ruleRemark;
        return this;
    }
}
